<div class="m-a-lg">
	<?php
		if (count($images) > 0)
		{
			foreach($images as $group)
			{
				?>
				<div class="row">
					<?php
						if (count($group) > 0)
						{
							foreach($group as $item)
							{
								?>
								<div class="col-sm-4">
									<div class="thumbnail">
										<img class="img-responsive" alt="<?= $item->b_origname; ?>" src="<?= thumbnail('appimage/banners/'.$item->b_filename, 209, 199); ?>">
										<div class="caption text-center">
											<h4><?= $item->b_origname; ?></h4>
											<p>
												<a target="_blank" class="btn btn-default" href="<?= site_url('banners/appimage/banners/'.$item->b_filename); ?>" data-original-title="" title="">Open</a>
											</p>
										</div>
									</div>
								</div>
								<?php
							}	
						}
					?>
				</div>
				<?php
			}
		}
	?>	
</div>